<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="./style.css" type="text/css">
    <title>购物车</title>
</head>

<body>
    <div id="app">
        <span v-for="item in list">
            <ul style="list-style: none; ">
                <li>{{item.id}} - {{item.name}} - {{item.price}} - {{item.count}}</li>
            </ul>
        </span>
    </div>
    <script src="https://unpkg.com/vue/dist/vue.min.js"></script>
    <script src="./index.js"></script>
    <script>
        let app = new Vue({
            el: '#app',
            data() {
                return {
                    list: [
                        {
                            id: 1,
                            name: '命运的波动',
                            price: 213.8,
                            count: 1
                        },
                        {
                            id: 2,
                            name: 'iPad Pro',
                            price: 5888,
                            count: 1
                        },
                        {
                            id: 3,
                            name: 'MacBook Pro',
                            price: 21388,
                            count: 1
                        }
                    ]
                 }
            },
            computed: {

            },
            methods: {

            }
        })
    </script>
</body>

</html>